package com.utils;

import java.util.HashMap;
import java.util.Map;

public class RequestMappingUtils {

    private static Map<String, Object> targetObjectMap = new HashMap<>();

    private static Map<String, String> url2MethodMap = new HashMap<>();


    public static String getMethod(String key) {
        return url2MethodMap.get(key);
    }

    public static String addMethod(String url,String methodName) {
        return url2MethodMap.put(url, methodName);
    }


    public static Object getTarget(String uri) {
        return targetObjectMap.get(uri);
    }



    public static Object addTarget(String uri,Object target) {
        return targetObjectMap.put(uri, target);
    }
}
